//
//  NumberPickerCellData.h
//  18Birdies
//
//  Created by Lc on 15/5/14.
//  Copyright (c) 2015年 Lc. All rights reserved.
//

#import "LcCellData.h"

@class NumberPickerCellData;

@protocol NumberPickerDelegate<NSObject>
@required
- (void)onNumberChanged:(int)value cellData:(NumberPickerCellData*)cellData;
@end

@interface NumberPickerCellData
    : LcCellData<UIPickerViewDataSource, UIPickerViewDelegate>

+ (NumberPickerCellData*)cellDataWithStartValue:(int)startValue
                                       endValue:(int)endValue
                                     unitSingle:(NSString*)unitSingle
                                     unitPlural:(NSString*)unitPlural
                                          value:(int)value;
+ (NumberPickerCellData*)cellDataWithValues:(NSArray*)values
                                 unitSingle:(NSString*)unitSingle
                                 unitPlural:(NSString*)unitPlural
                                      value:(int)value;

@property(nonatomic, strong) NSArray* values;
@property(nonatomic, copy, readonly) NSString* unitSingle;
@property(nonatomic, copy, readonly) NSString* unitPlural;
@property(nonatomic, assign) int value;
@property(nonatomic, weak) id<NumberPickerDelegate> delegate;
@property(nonatomic, assign) BOOL transformZeroToOff;

@end
